package oj;

/**
 * @author ：冯涛滔
 * @date ：Created in 2020-4-27 20:01
 * @description：
 * @modified By：
 * @version:
 */
public class Test {
    public int id;
    public static void test1(Test t1,Test t2){
        Test t3 = t1;
        t1 = t2;
        t2 = t3;
    }
    public static void main(String[] args) {
        Test t1 = new Test();
        t1.id =1;
        Test t2 = new Test();
        t2.id= 2;
        test1(t1,t2);
        System.out.println(t1.id);
    }
}
